package com.huanghuai.retail.controller;


import com.huanghuai.retail.common.R;
import com.huanghuai.retail.entity.PInformation;
import com.huanghuai.retail.entity.POGoods;
import com.huanghuai.retail.entity.PType;
import com.huanghuai.retail.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zjh
 * @since 2023-05-04
 */
@RestController
@RequestMapping("/poGoods")
public class POGoodsController {
    @Autowired
    private IPOGoodsService ipoGoodsService;

    @GetMapping
    public  Object get(){
        List<POGoods> list = ipoGoodsService.list();
        return list;
    }









}
